package javaBase.nowcoder.HJ87_A_密码强度等级;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        List<Character> numChar = new ArrayList<>();
        List<Character> upChar = new ArrayList<>();
        List<Character> lowChar = new ArrayList<>();
        List<Character> other = new ArrayList<>();
        int score = 0;
        int score_p = 0;
        for (int i = 0; i < str.length(); i++) {
            Character c = str.charAt(i);
            if ('0' <= c && c <= '9') {
                numChar.add(c);
            } else if ('a' <= c && c <= 'z') {
                lowChar.add(c);
            } else if ('A' <= c && c <= 'Z') {
                upChar.add(c);
            } else {
                other.add(c);
            }

        }
        if (str.length() <= 4) {
            score += 5;
        }
        if (5 <= str.length() && str.length() <= 7) {
            score += 10;
        }
        if (str.length() >= 8) {
            score += 25;
        }
        if (upChar.isEmpty() && lowChar.isEmpty()) {
            score += 0;
        }
        if (upChar.isEmpty() && !lowChar.isEmpty()) {
            score += 10;
        }
        if (!upChar.isEmpty() && lowChar.isEmpty()) {
            score += 10;
        }
        if (!upChar.isEmpty() && !lowChar.isEmpty()) {
            score += 20;
        }
        if (numChar.isEmpty()) {
            score += 0;
        }
        if (numChar.size() == 1) {
            score += 10;
        }
        if (numChar.size() >= 2) {
            score += 20;
        }
        if (other.isEmpty()) {
            score += 0;
        }
        if (other.size() == 1) {
            score += 10;
        }
        if (other.size() >= 2) {
            score += 25;
        }
        if (!numChar.isEmpty() && !upChar.isEmpty()) {
            score_p = 2;
        }
        if (!numChar.isEmpty() && !lowChar.isEmpty()) {
            score_p = 2;
        }
        if (!numChar.isEmpty() && !upChar.isEmpty() && !other.isEmpty() && lowChar.isEmpty()) {
            score_p = 3;
        }
        if (!numChar.isEmpty() && !lowChar.isEmpty() && !other.isEmpty() && upChar.isEmpty()) {
            score_p = 3;
        }
        if (!numChar.isEmpty() && !lowChar.isEmpty() && !other.isEmpty() && !upChar.isEmpty()) {
            score_p = 5;
        }

        score = score_p + score;
        if (90 <= score) {
            System.out.println("VERY_SECURE");
        } else if (80 <= score) {
            System.out.println("SECURE");
        } else if (70 <= score) {
            System.out.println("VERY_STRONG");
        } else if (60 <= score) {
            System.out.println("STRONG");
        } else if (50 <= score) {
            System.out.println("AVERAGE");
        } else if (25 <= score) {
            System.out.println("WEAK");
        } else if (0 <= score) {
            System.out.println("VERY_WEAK");
        }
    }

}
